//
//  VisitorTableViewController.swift
//  day3_weibo
//
//  Created by 王珏琨 on 16/6/15.
//  Copyright © 2016年 wangjuekun. All rights reserved.
//

import UIKit

class VisitorTableViewController: UITableViewController {

    
    private var userlogon = false
    
    var visitorView: VisitorView?
    
    override func loadView() {
        userlogon ? super.loadView() : setupVisitorView()
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        print(visitorView)
    }
    
    private func setupVisitorView() {
        
        visitorView = VisitorView()
        
        view = visitorView
        
        
    }
}
